module.exports = {
	grade: function() {

		let header = header || "application/x-www-form-urlencoded";
		let token = uni.getStorageSync("token");
		if (token) {
			var grade = ""
			return (async () => {
				grade = await new Promise((resolve) => {
					uni.request({
						url: "http://192.168.1.199:8888/common/getMemoByCode",
						data: {
							code: "tbkyhyjbl"
						},
						method: "GET",
						header: {
							"content-type": header,
							"token": token
						},
						success: function(result) {
							resolve(result.data.data)
						},
						fail: function(e) {

						},
					})
				})
                console.log("2222",grade)
				return 1
			})()

		} else {
			return uni.request({
				url: "http://192.168.1.199:8888/common/getMemoByCode",
				data: {
					code: "tbkyhyjbl"
				},
				method: "GET",
				header: {
					"content-type": header
				},
				success: function(result) {

					console.log("999")
				},
				fail: function(e) {

				}
			})

		}



	}
}
